var a,
  t = (a = require("@/config/page")) && a.__esModule ? a : { default: a },
  r = require("@/utils/jump"),
  e = require("@/utils/report");
Component({
  properties: {
    list: { type: Object, default: [] },
    come: { type: String, default: "1" },
  },
  data: { current: 0 },
  methods: {
    toAll: function () {
      (0, e.report)("fpage_treasure_click", {}),
        (0, r.navigateTo)(t.default.PAGE_RECOMMEND_COLLECTION, {});
    },
    toInfo: function () {
      var a = getApp();
      (a.globalData.tabBarParam.tab = 0),
        (a.globalData.tabBarParam.current = 2),
        (a.globalData.tabBarParam.isFromTabBar = !0),
        (0, e.report)("fpage_treasure_click", {}),
        wx.switchTab({ url: "".concat(t.default.PAGE_APPRECIATION_INDEX) });
    },
    toStory: function () {
      var a = getApp();
      (a.globalData.tabBarParam.tab = 0),
        (a.globalData.tabBarParam.current = 3),
        (a.globalData.tabBarParam.isFromTabBar = !0),
        (0, e.report)("fpage_treasure_click", {}),
        wx.switchTab({ url: "".concat(t.default.PAGE_APPRECIATION_INDEX) });
    },
    toItem: function (a) {
      var o = a.currentTarget.dataset.item;
      (0, e.report)("fpage_treasure_click", {}),
        (0, r.navigateTo)(t.default.PAGE_APPRECIATION_COLLECTION_CARD_INDEX, {
          id: o.id,
        });
    },
    onChange: function (a) {
      var t = a.detail.current;
      this.setData({ current: t });
    },
  },
});
